#coding=utf-8
'''
#关于字符的建议：
    1、first decode
    2、unicode everywhere
    3、encode last
'''

def ex1():
    print "hello world"
    print "Mr. Yang"
    print "alex in backend"
    print "final 'you know'~"
    return 0

def ex2():
    '''
    nihao
    you know~
    '''
    
def ex3():
    print '1 plus 2 =', 1+2
    print '1 div 2', 1/2
    a = 80
    print a is 80.0
    print 'a + b', a + 80
    c = a + 80
    print 'total is %s' % c
    
def ex4():
    print u'你好' + '\n'
    print ('ex2 too for chinese %s' % u'你好') + '\n'
    #print ('ex2 too for chinese %s' % u'你好').encode('utf8', 'ignore')

if __name__ == '__main__':
    #ex1()
    #ex2()
    ex4()
    
